import request from '@/utils/request.js';
// 分销 API

/**
 * 分销中心
 */
export const distributeCenter = (data) => {
	return request.post('Mini/ApiConnect/distributeCenter', data)
}

/**
 * 活动说明
 */
export const getCommissionNote = (data) => {
	return request.post('Mini/ApiConnect/getCommissionNote', data)
}

/**
 * 我的邀请码
 */
export const myCode = (data) => {
	return request.post('Mini/ApiConnect/myCode', data)
}

/**
 * 绑定推荐人
 */
export const bindCode = (data) => {
	return request.post('Mini/ApiConnect/bindCode', data)
}

/**
 * 分销订单
 */
export const getDistributeOrder = (data) => {
	return request.post('Mini/ApiConnect/getDistributeOrder', data)
}

/**
 * 分销排名
 */
export const getRank = (data) => {
	return request.post('Mini/ApiConnect/getRank', data)
}

/**
 * 我的团队
 */
export const getMineTeam = (data) => {
	return request.post('Mini/ApiConnect/getMineTeam', data)
}

/**
 * 申请提现
 */
export const withdrawApply = (data) => {
	return request.post('Mini/ApiConnect/withdrawApply', data)
}

/**
 * 提现记录
 */
export const withdrawLog = (data) => {
	return request.post('Mini/ApiConnect/withdrawLog', data)
}

/**
 * 佣金明细
 */
export const getDistributeLog = (data) => {
	return request.post('Mini/ApiConnect/getDistributeLog', data)
}